//
//  CaBackView.m
//  Calendar
//
//  Created by wenhe on 15/2/28.
//  Copyright (c) 2015年 张凡. All rights reserved.
//

#import "CaBackView.h"

@implementation CaBackView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.

*/


- (void)drawRect:(CGRect)rect {
        CGContextRef ctx = UIGraphicsGetCurrentContext();
        CGContextSetLineWidth(ctx, 0.5);
        CGContextSetStrokeColorWithColor(ctx, [[UIColor blackColor]CGColor]);
        CGContextBeginPath(ctx);
        CGContextMoveToPoint(ctx, 0, 0);
        CGContextAddLineToPoint(ctx, self.frame.size.width, 0);
    
        CGContextMoveToPoint(ctx, self.frame.size.width - 1, 0);
        CGContextSetLineWidth(ctx, 1);
        CGContextAddLineToPoint(ctx, self.frame.size.width - 1, self.frame.size.height);
        CGContextSetLineWidth(ctx, 0.5);
        CGContextAddLineToPoint(ctx, 0, self.frame.size.height);
        CGContextStrokePath(ctx);
}
@end
